<?php

namespace backend\models;

use Yii;
use yii\base\Model;
use yii\web\UploadedFile;

/**
 * This is the model class for table "contract_file".
 *
 * @property int $id
 * @property string $title
 * @property string $filename
 * @property int $id_contract
 *
 * @property Contract $contract
 */
class ParseOfflineSaleForm extends Model
{

    public $file;
    public $date_start;

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['date_start'], 'safe'],
            [['file'], 'file', 'extensions' => 'xlsx', 'maxSize' => 1024*1024*150],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'date_start' => 'дата',
            'file' => 'xlsx документ',
        ];
    }

}

